package com.lin.manager.oss.config.properties;

import com.lin.manager.oss.model.StorageConfigData;
import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author linjiang
 * @date 2024/7/29
 * @fn
 */
@Data
@Configuration
@ConditionalOnProperty(prefix = "file.storage", name = "enable", havingValue = "true")
@ConfigurationProperties("file.storage")
public class OssProperties {

    /**
     * 平台
     */
    private String platform;

    /**
     * 本地配置
     */
    private StorageConfigData local;

    /**
     * 阿里云
     */
    private StorageConfigData aliyun;

    /**
     * 腾讯云
     */
    private StorageConfigData tencent;

    /**
     * 腾讯云
     */
    private StorageConfigData minio;
}
